import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '用户姓名',
    align: "center",
    dataIndex: 'realname'
  },
  {
    title: '用户账号',
    align: "center",
    dataIndex: 'username'
  },
  {
    title: '用户电话',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '市',
    align: "center",
    dataIndex: 'city'
  },
  {
    title: '省',
    align: "center",
    dataIndex: 'province'
  },
  {
    title: '区域',
    align: "center",
    dataIndex: 'area'
  },
  {
    title: '是否质差',
    align: "center",
    dataIndex: 'sfzc'
  },
  {
    title: '有效在线天数',
    align: "center",
    dataIndex: 'validDays'
  },
  {
    title: '游戏网站名称',
    align: "center",
    dataIndex: 'gameName'
  },
  {
    title: '游戏下行累计流量(M)',
    align: "center",
    dataIndex: 'gameDown'
  },
  {
    title: '游戏上行累计流量(M)',
    align: "center",
    dataIndex: 'gameUp'
  },
  {
    title: '日均时长/游戏总时长(h)',
    align: "center",
    dataIndex: 'gameDaot'
  },
  {
    title: '日均流量/游戏总流量(M)',
    align: "center",
    dataIndex: 'gameRateOfFlow'
  },
  {
    title: '游戏质差次数',
    align: "center",
    dataIndex: 'gameZccs'
  },
  {
    title: '游戏质差时长占比(%)',
    align: "center",
    dataIndex: 'gameProportion'
  },
  {
    title: '游戏上行平均时延(ms)',
    align: "center",
    dataIndex: 'gameUpDefer'
  },
  {
    title: '游戏下行平均时延(ms)',
    align: "center",
    dataIndex: 'gameDownDefer'
  },
  {
    title: '游戏上行平均抖动(ms)',
    align: "center",
    dataIndex: 'gameUpShake'
  },
  {
    title: '游戏下行平均抖动(ms)',
    align: "center",
    dataIndex: 'gameDownShake'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '用户姓名',
    field: 'realname',
    component: 'Input',
  },
  {
    label: '用户账号',
    field: 'username',
    component: 'Input',
  },
  {
    label: '用户电话',
    field: 'phone',
    component: 'Input',
  },
  {
    label: '市',
    field: 'city',
    component: 'Input',
  },
  {
    label: '省',
    field: 'province',
    component: 'Input',
  },
  {
    label: '区域',
    field: 'area',
    component: 'Input',
  },
  {
    label: '是否质差',
    field: 'sfzc',
    component: 'Input',
  },
  {
    label: '有效在线天数',
    field: 'validDays',
    component: 'Input',
  },
  {
    label: '游戏网站名称',
    field: 'gameName',
    component: 'Input',
  },
  {
    label: '游戏下行累计流量(M)',
    field: 'gameDown',
    component: 'Input',
  },
  {
    label: '游戏上行累计流量(M)',
    field: 'gameUp',
    component: 'Input',
  },
  {
    label: '日均时长/游戏总时长(h)',
    field: 'gameDaot',
    component: 'Input',
  },
  {
    label: '日均流量/游戏总流量(M)',
    field: 'gameRateOfFlow',
    component: 'Input',
  },
  {
    label: '游戏质差次数',
    field: 'gameZccs',
    component: 'Input',
  },
  {
    label: '游戏质差时长占比(%)',
    field: 'gameProportion',
    component: 'Input',
  },
  {
    label: '游戏上行平均时延(ms)',
    field: 'gameUpDefer',
    component: 'Input',
  },
  {
    label: '游戏下行平均时延(ms)',
    field: 'gameDownDefer',
    component: 'Input',
  },
  {
    label: '游戏上行平均抖动(ms)',
    field: 'gameUpShake',
    component: 'Input',
  },
  {
    label: '游戏下行平均抖动(ms)',
    field: 'gameDownShake',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
